package geometry.basic;

import static java.lang.Math.*;

public class Vector extends Pair {

	public Vector(double x, double y) {
		super(x, y);
	}

	public double length() {
		return sqrt(x * x + y * y);
	}

	public double signedAreaOfParallelogram(Vector adjacentSide) {
		return x * adjacentSide.y - y * adjacentSide.x;
	}

}
